﻿using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace AssetManageSystem.Model.OrgManage
{
    public class Department : TreePoco<Department>
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        [Display(Name = "部门名称")]
        [Required(ErrorMessage = "Validate.{0}required")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string DepName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public int? DisplayOrder { get; set; }
    }
}
